home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
aclock
/
form1.frm
next >
Wrap
Text File
|
1999-09-04
|
10KB
|
332 lines
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Form1
AutoRedraw = -1 'True
BorderStyle = 1 'Fixed Single
ClientHeight = 4200
ClientLeft = 312
ClientTop = 612
ClientWidth = 7848
BeginProperty Font
Name = "Arial"
Size = 7.8
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Icon = "Form1.frx":0000
KeyPreview = -1 'True
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 4200
ScaleWidth = 7848
StartUpPosition = 2 'CenterScreen
Begin VB.Timer Timer1
Interval = 1000
Left = 120
Top = 960
End
Begin MSComDlg.CommonDialog CMDialog1
Left = 120
Top = 480
_ExtentX = 677
_ExtentY = 677
_Version = 393216
Max = 36
Min = 8
End
Begin VB.Label cap2
AutoSize = -1 'True
Caption = "Date:"
Height = 192
Left = 120
TabIndex = 5
Top = 2280
Width = 372
End
Begin VB.Label Label2
BackColor = &H80000014&
BorderStyle = 1 'Fixed Single
BeginProperty Font
Name = "Arial"
Size = 36
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000007&
Height = 1920
Left = 600
TabIndex = 1
Top = 2160
Width = 7164
End
Begin VB.Label Label1
BackColor = &H80000014&
BorderStyle = 1 'Fixed Single
BeginProperty Font
Name = "Arial"
Size = 36
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000007&
Height = 1920
Left = 600
TabIndex = 0
Top = 120
Width = 7164
End
Begin VB.Label Label3
BackColor = &H80000014&
BorderStyle = 1 'Fixed Single
BeginProperty Font
Name = "Arial"
Size = 36
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 1920
Left = 600
TabIndex = 2
Top = 120
Width = 7164
End
Begin VB.Label Label4
BackColor = &H80000014&
BorderStyle = 1 'Fixed Single
BeginProperty Font
Name = "Arial"
Size = 36
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000007&
Height = 1920
Left = 600
TabIndex = 3
Top = 2160
Width = 7164
End
Begin VB.Label cap
AutoSize = -1 'True
Caption = "Time:"
Height = 192
Left = 120
TabIndex = 4
Top = 120
Width = 384
End
Begin VB.Menu File
Caption = "&File"
Begin VB.Menu cmdQuit
Caption = "Quit"
Shortcut = ^Q
End
End
Begin VB.Menu Options
Caption = "&Option's"
Begin VB.Menu Font
Caption = "&Font"
Begin VB.Menu Font1
Caption = "Time Font"
End
Begin VB.Menu Font2
Caption = "Date Font"
End
End
Begin VB.Menu Color
Caption = "&Color's"
Begin VB.Menu timec
Caption = "Time"
Begin VB.Menu Color1
Caption = "Background"
End
Begin VB.Menu Color3
Caption = "Foreground"
End
End
Begin VB.Menu Datec
Caption = "Date"
Begin VB.Menu Color2
Caption = "Background"
End
Begin VB.Menu Color4
Caption = "Foreground"
End
End
End
End
Begin VB.Menu Show
Caption = "&Show"
Begin VB.Menu Option1
Caption = "Show Time"
End
Begin VB.Menu Option2
Caption = "Show Date"
End
Begin VB.Menu Option3
Caption = "Show Both"
End
Begin VB.Menu Option4
Caption = "Show None"
End
End
Begin VB.Menu About
Caption = "&About"
Begin VB.Menu cmdAbout
Caption = "&About Clock"
End
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdAbout_Click()
frmAbout.Show
End Sub
Private Sub cmdQuit_Click()
Dim Msg, Response ' Declare variables.
Msg = "Are you sure you want to quit?"
Response = MsgBox(Msg, vbQuestion + vbYesNo, "KF4ZPB Clock")
Select Case Response
Case vbNo
Cancel = -1
Msg = "Quit has been canceled."
Case vbYes
Unload Form1
Unload frmAbout
Unload frmSupport
End
End Select
End Sub
Private Sub Color3_Click()
On Error Resume Next
CMDialog1.Flags = &H1&
CMDialog1.Action = 3
Label1.ForeColor = CMDialog1.Color
Label3.ForeColor = CMDialog1.Color
End Sub
Private Sub Color4_Click()
On Error Resume Next
CMDialog1.Flags = &H1&
CMDialog1.Action = 3
Label2.ForeColor = CMDialog1.Color
Label4.ForeColor = CMDialog1.Color
End Sub
Private Sub Font1_Click()
On Error Resume Next
CMDialog1.Flags = &H1&
CMDialog1.Action = 4
Label1.FontName = CMDialog1.FontName
Label1.FontSize = CMDialog1.FontSize
Label1.FontBold = CMDialog1.FontBold
Label1.FontItalic = CMDialog1.FontItalic
Label1.FontUnderline = CMDialog1.FontUnderline
Label1.FontStrikethru = CMDialog1.FontStrikethru
Label3.FontName = CMDialog1.FontName
Label3.FontSize = CMDialog1.FontSize
Label3.FontBold = CMDialog1.FontBold
Label3.FontItalic = CMDialog1.FontItalic
Label3.FontUnderline = CMDialog1.FontUnderline
Label3.FontStrikethru = CMDialog1.FontStrikethru
End Sub
Private Sub Font2_Click()
On Error Resume Next
CMDialog1.Flags = &H1&
CMDialog1.Action = 4
Label2.FontName = CMDialog1.FontName
Label2.FontSize = CMDialog1.FontSize
Label2.FontBold = CMDialog1.FontBold
Label2.FontItalic = CMDialog1.FontItalic
Label2.FontUnderline = CMDialog1.FontUnderline
Label2.FontStrikethru = CMDialog1.FontStrikethru
Label4.FontName = CMDialog1.FontName
Label4.FontSize = CMDialog1.FontSize
Label4.FontBold = CMDialog1.FontBold
Label4.FontItalic = CMDialog1.FontItalic
Label4.FontUnderline = CMDialog1.FontUnderline
Label4.FontStrikethru = CMDialog1.FontStrikethru
End Sub
Private Sub Color1_Click()
On Error Res